editorconfig-core-handle.el: Don't use file names as glob pattern
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 18 Jun 2024 21:11:34 +0000 (17:11 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 19 Jun 2024 20:18:58 +0000 (16:18 -0400)
commit66d5bc292f1533b21b8fbe46291a0b4ec0b8cb53
tree98dc18ddd8f1f6a896a212db00108e95d0b67c3c
parent0f4fe99a38411bdfcd276f058880c2a49fb753e4
editorconfig-core-handle.el: Don't use file names as glob pattern

Match relative file names against the glob pattern instead of
trying to construct a glob pattern that matches the absolute
file name (where the code failed to escape the possible
special chars).

* lisp/editorconfig-core-handle.el
(editorconfig-core-handle-section-get-properties): Delete `dir` arg.
(editorconfig-core-handle-get-properties-hash)
(editorconfig-core-handle-get-properties): Adjust call accordingly.
Use `declare` to mark it obsolete.
(editorconfig-core-handle--fnmatch-p): Delete `dir` arg.
lisp/editorconfig-core-handle.el